package com.ilancuo.thread;

/**
 * Thread和Runnable的构造方法测试
 * <p>
 * Created by ilancuo on 2016/12/18.
 */
public class ThreadTest {

    public static void main(String... args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("This is in Runnable...");;
            }
        }) {
            @Override
            public void run() {
                super.run();
                System.out.println("This is in Thread...");;
            }
        }.start();
    }
}
